import request from '@/utils/request'

export function getuserlist(data) {
    return request({
        url: 'api/user/getuserlist',
        method: 'post',
        data: data
    })
}

export function getschoollist(data) {
    return request({
        url: 'api/school/getschoollist',
        method: 'post',
        data: data
    })
}
export function getrolelist(data) {
    return request({
        url: 'api/role/getrolelist',
        method: 'post',
        data: data
    })
}
export function getagentlist(data) {
    return request({
        url: 'api/agent/getagentlist',
        method: 'post',
        data: data
    })
}

/**
 * 班级管理 相关接口
 */
export function getclasslist(data) {
    return request({
        url: 'api/class/getclasslist',
        method: 'post',
        data: data
    })
}
export function addclass(data) {
    return request({
        url: 'api/class/addclass',
        method: 'post',
        data: data
    })
}
export function editclass(data) {
    return request({
        url: 'api/class/editclass',
        method: 'post',
        data: data
    })
}
export function delclass(data) {
    return request({
        url: 'api/class/delclass',
        method: 'post',
        data: data
    })
}
/**
 * 年纪管理 相关接口
 */
export function getgradelist(data) {
    return request({
        url: 'api/grade/getgradelist',
        method: 'post',
        data: data
    })
}
export function addgrade(data) {
    return request({
        url: 'api/grade/addgrade',
        method: 'post',
        data: data
    })
}
export function editgrade(data) {
    return request({
        url: 'api/grade/editgrade',
        method: 'post',
        data: data
    })
}
export function delgrade(data) {
    return request({
        url: 'api/grade/delgrade',
        method: 'post',
        data: data
    })
}
/**
 * 科目管理 相关接口   (完成)
 */
export function getsubjectlist(data) {
    return request({
        url: 'api/subject/getsubjectlist',
        method: 'post',
        data: data
    })
}
export function addsubject(data) {
    return request({
        url: 'api/subject/addsubject',
        method: 'post',
        data: data
    })
}
export function editsubject(data) {
    return request({
        url: 'api/subject/editsubject',
        method: 'post',
        data: data
    })
}
export function delsubject(data) {
    return request({
        url: 'api/subject/delsubject',
        method: 'post',
        data: data
    })
}

/**
 * 教师管理 相关接口
 */
export function getTeacherlist(data) {
    return request({
        url: 'api/teacher/getteacherlist',
        method: 'post',
        data: data
    })
}
export function addteacher(data) {
    return request({
        url: 'api/teacher/addteacher',
        method: 'post',
        data: data
    })
}
export function editteacher(data) {
    return request({
        url: 'api/teacher/editteacher',
        method: 'post',
        data: data
    })
}
export function delteacher(data) {
    return request({
        url: 'api/teacher/delteacher',
        method: 'post',
        data: data
    })
}
/**
 * 学生管理 相关接口
 */
export function getstudentlist(data) {
    return request({
        url: 'api/student/getstudentlist',
        method: 'post',
        data: data
    })
}
export function addstudent(data) {
    return request({
        url: 'api/student/addstudent',
        method: 'post',
        data: data
    })
}
export function editstudent(data) {
    return request({
        url: 'api/student/editstudent',
        method: 'post',
        data: data
    })
}
export function delstudent(data) {
    return request({
        url: 'api/student/delstudent',
        method: 'post',
        data: data
    })
}
export function addstudentguardian(data) {
    return request({
        url: 'api/student/addstudentguardian',
        method: 'post',
        data: data
    })
}
export function editstudentguardian(data) {
    return request({
        url: 'api/student/editstudentguardian',
        method: 'post',
        data: data
    })
}

export function getstudentguardian(data) {
    return request({
        url: 'api/student/getstudentguardian',
        method: 'post',
        data: data
    })
}
export function changestudentdevice(data) {
    return request({
        url: 'api/student/changestudentdevice',
        method: 'post',
        data: data
    })
}